package com.ktgj.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.customer.mapper.CaseComplaintReaultMapper;
import com.ktgj.customer.domain.CaseComplaintReault;
import com.ktgj.customer.service.ICaseComplaintReaultService;

/**
 * 投诉工单_投诉结果Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-27
 */
@Service
public class CaseComplaintReaultServiceImpl implements ICaseComplaintReaultService 
{
    @Autowired
    private CaseComplaintReaultMapper caseComplaintReaultMapper;

    /**
     * 查询投诉工单_投诉结果
     * 
     * @param complaintReaultId 投诉工单_投诉结果ID
     * @return 投诉工单_投诉结果
     */
    @Override
    public CaseComplaintReault selectCaseComplaintReaultById(Long complaintReaultId)
    {
        return caseComplaintReaultMapper.selectCaseComplaintReaultById(complaintReaultId);
    }

    /**
     * 查询投诉工单_投诉结果列表
     * 
     * @param caseComplaintReault 投诉工单_投诉结果
     * @return 投诉工单_投诉结果
     */
    @Override
    public List<CaseComplaintReault> selectCaseComplaintReaultList(CaseComplaintReault caseComplaintReault)
    {
        return caseComplaintReaultMapper.selectCaseComplaintReaultList(caseComplaintReault);
    }

    /**
     * 新增投诉工单_投诉结果
     * 
     * @param caseComplaintReault 投诉工单_投诉结果
     * @return 结果
     */
    @Override
    public int insertCaseComplaintReault(CaseComplaintReault caseComplaintReault)
    {
        return caseComplaintReaultMapper.insertCaseComplaintReault(caseComplaintReault);
    }

    /**
     * 修改投诉工单_投诉结果
     * 
     * @param caseComplaintReault 投诉工单_投诉结果
     * @return 结果
     */
    @Override
    public int updateCaseComplaintReault(CaseComplaintReault caseComplaintReault)
    {
        return caseComplaintReaultMapper.updateCaseComplaintReault(caseComplaintReault);
    }

    /**
     * 批量删除投诉工单_投诉结果
     * 
     * @param complaintReaultIds 需要删除的投诉工单_投诉结果ID
     * @return 结果
     */
    @Override
    public int deleteCaseComplaintReaultByIds(Long[] complaintReaultIds)
    {
        return caseComplaintReaultMapper.deleteCaseComplaintReaultByIds(complaintReaultIds);
    }

    /**
     * 删除投诉工单_投诉结果信息
     * 
     * @param complaintReaultId 投诉工单_投诉结果ID
     * @return 结果
     */
    @Override
    public int deleteCaseComplaintReaultById(Long complaintReaultId)
    {
        return caseComplaintReaultMapper.deleteCaseComplaintReaultById(complaintReaultId);
    }
    /**
     * 查询投诉工单_投诉结果列表
     * @return投诉工单_投诉结果集合
     */
    @Override
    public List<CaseComplaintReault> selectReaultList(){
        return  caseComplaintReaultMapper.selectReaultList();
    }
}
